package JAVATest;

import java.util.Random;
import java.util.Scanner;

/**
 * ClassName:Text_026
 * Package:JAVATest
 * Description:
 *
 * @Author:ZhangXin
 * @Create2023/1/15-19:32
 * @Version:v1.0
 */
public class Text_026 {
    public static void main(String[] args) {
        Random r = new Random();
        double t = r.nextDouble(10);
        System.out.println(t);
        System.out.println("---------------------");
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入一个小数:");
        double result = sc.nextDouble();
        System.out.println(result);
    }
}
